/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.kleintjes.question1.polymorphism.services.impl;

import ac.za.cput.kleintjes.question1.polymorphism.services.Shape;

/**
 * @author Administrator
 */
public class Triangle implements Shape
{
    private int breath;
    private int height;

    public Triangle() {
    }

    public Triangle(int breath, int height) {
        this.breath = breath;
        this.height = height;
    }
    
    public long area() {
        return (breath*height)/2;
    }
    
}
